namespace Brjnk.Common
{
    using System;
    using System.Windows;
    using System.Windows.Data;

    /// <summary>
    /// </summary>
    public class StringToVisibilityConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            //   if (value == null) return Visibility.Collapsed;
            //    if(string.IsNullOrEmpty(value as string))
            return Visibility.Visible;
            //   System.Diagnostics.Debug.WriteLine(value);
            //   return Visibility.Visible;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}